<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" import="java.util.*,com.yigerende.pojo.*"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻中心</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="<%=path %>/css/style.css" />
<script src="<%=path %>/js/jQuery1.8.2.js" type="text/javascript"></script>
<!--[if IE]><script src="../js/html5.js" type="text/javascript"></script><![endif]-->
</head>
<body>
	<jsp:include page="top2.jsp" />

	<!--banner开始-->

	<div class="tem_banner">
		<ul class="slides" style="height: 380px;">
			<li
				style="background:url(<%=path %>/images/news.jpg) no-repeat center center; height:380px;"></li>
		</ul>
	</div>
	<section class="met_section mynews_aside  "> <aside>

	<%
  List<News> newsList = (List<News>) request.getAttribute("XinWenList1");
  %>


	<ul>
		<%
            	for(int i=0;i<newsList.size();i++){
            		News n = newsList.get(i);
            %>
		<li><a href="#" target="_self"><b><%=n.getId() %></b><%=n.getTitle() %></a></li>
		<%
            	}
            %>
	</ul>
	</dd>
	</dl>

	</aside> <article>
	<div class="met_article">
		<section class="met_article_head">
		<h1>新闻中心</h1>
		<div class="met_position">
			<a href="<%=path %>/html/index.jsp" title="首页">首页</a> &gt; <a
				href="<%=path %>/html/newslist.jsp">企业新闻</a>
		</div>
		</section>
		<div class="met_clear"></div>
		<div class="met_module2_list ">
			<div class="">
				<div class="my_news">
					<ul>



						<%
            	for(int i=0;i<newsList.size();i++){
            		News n2 = newsList.get(i);
            %>
						<li>
							<h2>
								<a href="#" title="我司移动项目顺利通过验收" target="_self"><%=n2.getTitle() %></a>
							</h2>
							<div class="article_info cl">
								2015年12月8日
								<p>
									<a class="reader" href="news.html" target="_self"> <b>看</b>
										20
									</a>
								</p>
							</div>
							<div class="article">
								<div class="article_img">
									<a href="news.html" title="我司移动项目顺利通过验收" target="_self"><img
										src="<%=path %>/images/123456.jpg" alt="我司移动项目顺利通过验收"></a>
								</div>
								<P><%=n2.getTemp1() %></p>
							</div>
							<div class="readmore">
								<a href="#" target="_self">阅读全文<b></b></a>
							</div>
						</li>

						<%
            	}
            %>



					</ul>
					<div class="met_pager">
						<a href="<%=path%>/IndexServlet?flag=_xinwen&type=${type1}">首页</a>
						<!-- 直接给currentPage给个1 -->
						<a
							href="<%=path%>/IndexServlet?flag=_xinwen&currentPage=${currentPage1<=1?currentPage1:currentPage1-1}&type=${type1}">上一页</a>
						<a
							href="<%=path%>/IndexServlet?flag=_xinwen&currentPage=${currentPage1<bottomPage1?currentPage1+1:bottomPage1}&type=${type1}">下一页</a>
						<a
							href="<%=path%>/IndexServlet?flag=_xinwen&currentPage=${bottomPage1}&type=${type1}">尾页</a>
					</div>
				</div>
			</div>
		</div>
	</article>
	<div class="met_clear"></div>
	</section>
	<div class="met_clear"></div>
	<!--新闻列表结束-->

	<jsp:include page="botmmo.jsp" />
</body>
</html>
